from pdf2docx import Converter

for i in range(1,84):
    pdf_file = "C:\\Users\\kf40\\Desktop\\基金文件\\" + str(i) + ".pdf"
    docx_file = "C:\\Users\\kf40\\Desktop\\基金文件\\" + str(i) + ".docx"
    cv = Converter(pdf_file)
    cv.convert(docx_file, start=0, end=None)
    cv.close()
# convert pdf to docx
cv = Converter(pdf_file)
cv.convert(docx_file, start=0, end=None)
cv.close()